const express = require('express');
const router = express.Router();
const { isAuthenticated } = require('../middleware/auth');

/* GET home page. */
router.get('/', isAuthenticated, function (req, res, next) {
  res.render('index', {
    title: 'Express',
    username: req.user?.username,

  });
});

module.exports = router;
